<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="favicon.ico" />
<link href="user/css/UserCenter.css?v=<?=WEB_VERSION?>" rel="stylesheet" type="text/css" />
<link href="user/css/Team.css?v=<?=WEB_VERSION?>" rel="stylesheet" type="text/css" />
<script src="user/js/jquery-1.7.1.min.js?v=<?=WEB_VERSION?>" type="text/javascript" language="javascript"></script>
<script src="user/js/UserWin.min.js?v=<?=WEB_VERSION?>" type="text/javascript" language="javascript"></script>
<script src="user/js/guide.js?v=<?=WEB_VERSION?>" type="text/javascript"  language="javascript"></script>
<script type="text/javascript">
$(document).ready(function(){$('.TeamSex a').click(function(){$('.TeamSex a').attr('class','');$(this).attr('class','onSerchs'); var sy = $(this).attr('date');$('.TeamSex .Sexs').attr('value',sy);});$('.TeamRank a').click(function(){$('.TeamRank a').attr('class','');$(this).attr('class','onSerchs'); var sy = $(this).attr('date');$('.TeamRank input').attr('value',sy);});$('.TeamCourse a').click(function(){$('.TeamCourse a').attr('class','');$(this).attr('class','onSerchs'); var sy = $(this).attr('date');$('.TeamCourse input').attr('value',sy);});});
</script>
<title>100课堂英语学习会员中心</title>
</head>
<body>
<?include('userTop.php')?>
<div class="CenterAuto">
 <div class="CenterAuto" style="position:relative;">
   <?
    include('userLeft.php')
   ?>
 <div class="CenterRight">
    <div class="CenterRightAuto">
	<?
    include('userMenu.php')
    ?> 
    <?$month = Common::getCalandarNowMonth($check_date);?>
   		<?$nextMonth = Common::getCalandarNextMonth($check_date);?>
   		<div class="dataTada" style="margin-top:20px;">
         <div class="dataTada_U1">
         	<h4><?=$month['y']?>年<?=$month['m']?>月</h4>
        		<?=$month['date']?>
         </div>
         <div class="dataTada_U1">
         	<h4><?=$nextMonth['y']?>年<?=$nextMonth['m']?>月</h4>
        	<?=$nextMonth['date']?>
         </div>
         <div class="dataTada_U2">
         	 <div class="SerTit1"><img src="<?=SITE_URL?>user/images/ixe1.jpg" width="12" height="14" /> 请点击日历中黄色区域的上课日期，即可显示在该日期能够预约课程的时间和老师。
         	 </div>
           <div class="SerTit2"><img src="<?=SITE_URL?>user/images/op1.jpg" width="71" height="26" />表示可以预约课程，请点击预约</div>
           <div class="SerTit2"><img src="<?=SITE_URL?>user/images/cd1.jpg" width="71" height="26" />表示已被预约或已经超时过期</div>
           <div class="SerTit2"><img src="<?=SITE_URL?>user/images/ixe2.jpg" width="12" height="14" />请按照以下条件搜索老师</div>
         </div>
        </div>
         <div class="Strips"></div>
        <?
        $getDate = isset($_GET['date'])?$_GET['date']:"";
        if(!Common::is_number($getDate)){
        	$getDate = strtotime(date('Y-m-d'));
        }
        $date = isset($getDate)?$getDate:'';?>    
        <?$tail_url='';if(!empty($date)){?>
        <?$tail_url='?&date='.$date;}?>
 		<form action="user_teacherList.htm<?=$tail_url?>" method="post" name="Forsd">
 		<input type="hidden" name="search" value="search">
 		  <input name="date" type="hidden" value="<?=htmlspecialchars($date)?>" />
    	<table width="770" border="0" cellspacing="2" class="SerchTeamStyle">
          <tr>
            <td width="122" height="24" align="center" valign="middle" bgcolor="#E7E7E7">预约时间</td>
            <td width="638" height="24" bgcolor="#F3F3F3" class="padding10">
				<select id="Ttime" name="time"  class="inputStyle">
                <option value="">不指定上课时间</option>
                <?
                foreach ($time as $k=>$v){
				?>
                <option value="<?=$k?>" <?if($k==$select_time){?>selected<?}?>><?=$v?></option>
          		  <?
				}
					?>
                </select>
            </td>
          </tr>
          <tr>
            <td align="center" valign="middle" bgcolor="#E7E7E7">擅长课程</td>
            <td bgcolor="#F3F3F3" class="padding10 TeamCourse">
				<a href="javascript:;" date="0" <?if($select_good_course==0){?> class="onSerchs" <?}?>>不限</a>
                <?
                foreach($course as  $k=>$v){
				?>
                <a href="javascript:;" date="<?=$k?>" <?if($select_good_course==$k){?> class="onSerchs" <?}?>><?=$v?></a>
                <?
				}
				?>            
               <input type="hidden" name="good_course" value="<?=htmlspecialchars($select_good_course)?>" id="goods_course"/>
            </td>
          </tr>
          <tr>
            <td height="24" align="center" valign="middle" bgcolor="#E7E7E7">适合级别</td>
            <td height="24" bgcolor="#F3F3F3" class="padding10 TeamRank">
				<a href="javascript:;" date="-1" <?if($select_english_level==="-1"){?> class="onSerchs"<?}?> >不限</a>
			      <?
				      foreach ($level as $k=>$v){
					  ?>          
				      	<a href="javascript:void(0);" date="<?=$k?>" <?if($select_english_level==$k){?> class="onSerchs" <?}?>><?=$v?></a>
				      <?
					  }
				 ?>
     			 <input type="hidden" name="english_level" value="<?=htmlspecialchars($select_english_level)?>" />
            </td>
          </tr>
          <tr>
            <td height="24" align="center" valign="middle" bgcolor="#E7E7E7">老师姓名</td>
            <td height="24" bgcolor="#F3F3F3" class="padding10">
            	<input type="text" name="name" value="<?=htmlspecialchars(isset($select_name)?$select_name:"")?>"  class="inputStyle"/>
				<span style="padding-left:20px; color:#F90;">不区分大小写</span>
            </td>
          </tr>
          <tr>
            <td height="24" align="center" valign="middle" bgcolor="#E7E7E7">老师性别</td>
            <td height="24" bgcolor="#F3F3F3" class="padding10 TeamSex">
				<a href="javascript:void(0)" date="0" <?if($select_sex==0){?> class="onSerchs" <?}?>>不限</a>
                <a href="javascript:void(0)" date="<?=SEX_MALE?>" <?if($select_sex==SEX_MALE){?> class="onSerchs" <?}?>>男</a>
                <a href="javascript:void(0)" date="<?=SEX_FEMALE?>" <?if($select_sex==SEX_FEMALE){?>class="onSerchs" <?}?>>女</a>
                <input type="hidden" name="sex" value="<?=htmlspecialchars($select_sex)?>" class="Sexs"/>
                <input type="submit" class="SubSerchTeam" value=" " />
            </td>
          </tr>
        </table>
		</form>
		<div class="Strips"></div>
        <div class="PublicPages">
        <?=$page?>
        </div>        
        <div class="TeacherTeams">
         		<?
		        $i=0;
		        $num = count($list);
		        foreach($list as $v){
				?>       
				<?if($i%4==0){?>
				<div style="float: left">
              	<dl class="TeacherListIco">
            	<dt>开课信息</dt>
            	 <?foreach($time_pair as $k_time=>$v_time){?>
		            	 	<?if($k_time>=$start_book_time){?>
                <dd><?=$v_time?></dd>
                	<?}?>
		            	<?}?>
		            	
            	</dl>
            	<?}?> 
         		
         		<dl class="TeacherListIco2">
            	<dt>
                    <p><a href="teacher/info_<?=$v['id']?>.htm"><img src="<?=SITE_URL.$v['list_portrait']?>" width="80" height="80" /></a></p>
                    <p><a href="teacher/info_<?=$v['id']?>.htm"><?=$v['name']?>老师</a></p>
                    <p>
                    <?if($v['education_experience']>1){?>
                    	<img src="user/images/xingxing<?=$v['education_experience']?>.png" />
                    <?}else{?>
	                    <img src="user/images/xingxing.png" />
                    <?}?>
                    </p>
                    <p>
                    <object width="110" height="20" data="user/swf/introplayer.swf" type="application/x-shockwave-flash">
                      <param name="wmode" value="opaque" />
                      <param value="user/swf/introplayer.swf" name="movie">
                      <param value="file=<?=$v['introduce']?>" name="FlashVars">
                    </object>
                    </p>
                </dt>
                                    <?foreach($time_pair as $k_time=>$v_time){?>
            			<?if($k_time>=$start_book_time){?>
		            	<?if(isset($teacherOpenClassPair[$v['id']][$k_time])&&$teacherOpenClassPair[$v['id']][$k_time]['open_time']){
		            		?>
                <dd><a href="javaScript:void(0)" onClick="javaScript:openClass('<?=$teacherOpenClassPair[$v['id']][$k_time]['open_date']?>','<?=$teacherOpenClassPair[$v['id']][$k_time]['open_time']?>','<?=$v['id']?>')"><img src="user/images/op2.jpg" width="89" height="25" /></a></dd>
               			 <?}else{?>
                <dd><a href="javaScript:void(0);"><img src="user/images/cd2.jpg" width="89" height="25" /></a></dd>
		            		                <?}}?>
	           <?}?>
            </dl>	
	            <? $i++;
	            if($i%4==0&&$i!=$num){?>
	           		</div>
	            <?}?>
           <?}?>
           	</div>
        	<div class="PublicPages"><?=$page?></div> 
      </div>
      </div>
    <div class="clearc"></div>
</div>
<div class="clearc"></div>
<div class="tipSwitch"></div>
</div>
<?
include('userFoot.php')
?>
<script type="text/javascript" src="user/js/teach.min.js?v=<?=WEB_VERSION?>?v=1.37"></script>
<script>
function openClass(book_date,book_time,book_teacher){
	location.href="user_booking.htm?book_date="+book_date+"&book_time="+book_time+"&book_teacher="+book_teacher;
}
</script>
<div id="guide-step" style="margin-top:-40px;">
	<div style="height:10px;line-height:99em;overflow:hidden;" id="stepflow03">
    	第二步骤</div>
	<div style="height:10px;line-height:99em;overflow:hidden;" id="stepflow04">
		第三步骤</div>
</div>
<script type="text/javascript">
var tipVisible = GetCookie("tipVisible");
var neverShow = GetCookie("neverShow");
if(tipVisible != "no" && neverShow != "no"){showSearchTip();setSearchTip();}
</script>
</body>
</html>
